import 'package:projectfluttershengyihuatong/courseDetail/CourseDetailModel.dart';
import 'package:projectfluttershengyihuatong/service/jsontool.dart';
import 'package:projectfluttershengyihuatong/service/request_manager.dart';

class CourseDetailViewModel {
  Future<CourseDetailModel?> request(Map<String, dynamic> params) async {
    const url = "/api/ke/getCourseDetail";
    final response = await RequestManager.getInstance()
        .dio
        .get(url, queryParameters: params);
    final model = BaseModel<CourseDetailModel>.fromJson(response.data).data;
    dataModel = model;
    return model;
  }
  CourseDetailModel? dataModel;


}
